<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="com.opensymphony.xwork2.ActionContext"%>
<%@page import="com.chilli.cosima.data.bean.TOperator"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
TOperator operator = (TOperator)ActionContext.getContext().getSession().get("operator");

String operatorname = operator.getUsername();
String rolename = operator.getRolename();
%>
<html>
	<head>
		<base href="<%=basePath%>" />
		<link rel="stylesheet" href="css/validate.css" type="text/css" />
		<link rel="stylesheet" href="css/common.css" type="text/css" />
		<link rel="stylesheet" href="css/jquery.treeview.css" type="text/css" />
		<link rel="stylesheet" href="css/screen.css" type="text/css" />
		<script language="javascript" src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
		<script language="javascript" src="js/jquery.cookie.js" type="text/javascript"></script>
		<script language="javascript" src="js/jquery.treeview.min.js" type="text/javascript"></script>
		<script language="javascript" src="js/menutree.js" type="text/javascript"></script>
		<title>左侧导航栏</title>
	</head>

	<body>
		<div id="left_content">
			<div id="user_info">
				欢迎您，
				<strong><%=operatorname%></strong>
				<br />
				[
				<%=rolename%>，
				<a href="loginAction!logout.action" target="_parent">退出</a>]
			</div>
			<div id="main_nav">
				<div id="left_main_nav"></div>
				<div id="right_main_nav">
				<%
			try{
			    String menuTree = (String)ActionContext.getContext().getSession().get("menuTree");
			    out.print(menuTree);
			}catch(Exception ex)
			{
			    ex.printStackTrace();
			}
		%>
				</div>
			</div>
		</div>
	</body>
</html>
